import { Button, Result } from 'antd'
import React from 'react'
import ProTable, { TableDropdown } from '@ant-design/pro-table'
import { HttpQueryUser } from '@/services/user'
import { columns } from './config'

const UserPage: React.FC<{}> = () => {
    return (
        <ProTable<IT.IUser>
            {...{
                columns,
                rowKey: 'id',
                bordered: true,
                dateFormatter: 'string',
                headerTitle: '用户管理',
                editable: { type: 'multiple' },
                search: { labelWidth: 'auto' },
                pagination: { pageSize: 50 },
                request: async (params = {}) => await HttpQueryUser(params),
            }}
        />
    )
}

export default UserPage
